home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Tcl-Tk 8.0 / Pre-installed version / tk8.0 / mac / MW_TkHeader.pch < prev    next >
Encoding:
Text File  |  1997-08-15  |  2.8 KB  |  111 lines  |  [TEXT/CWIE]

  1. /*
  2.  * MW_TkHeader.pch --
  3.  *
  4.  *  This file is the source for a pre-compilied header that gets used
  5.  *  for all files in the Tk projects.  This make compilies go a bit
  6.  *  faster.  This file is only intended to be used in the MetroWerks
  7.  *  CodeWarrior environment.  It essentially acts as a place to set 
  8.  *  compiler flags.  See MetroWerks documention for more details.
  9.  *
  10.  * Copyright (c) 1995-1997 Sun Microsystems, Inc.
  11.  *
  12.  * See the file "license.terms" for information on usage and redistribution
  13.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  14.  *
  15.  * SCCS: @(#) MW_TkHeader.pch 1.22 97/07/30 16:45:14
  16.  */
  17.  
  18. /*
  19.  * To use the compilied header you need to set the "Prefix file" in
  20.  * the "C/C++ Language" preference panel to point to the created
  21.  * compilied header.  The name of the header depends on the
  22.  * architecture we are compiling for (see the code below).  For
  23.  * example, for a 68k app the prefix file should be: MW_TclHeader68K.
  24.  */
  25.  
  26. #if __POWERPC__
  27. #pragma precompile_target "MW_TkHeaderPPC"
  28. #elif __CFM68K__
  29. #pragma precompile_target "MW_TkHeaderCFM68K"
  30. #else
  31. #pragma precompile_target "MW_TkHeader68K"
  32. #endif
  33.  
  34. /*
  35.  * Macintosh Tcl must be compiled with certain compiler options to
  36.  * ensure that it will work correctly.  The following pragmas are 
  37.  * used to ensure that those options are set correctly.  An error
  38.  * will occur at compile time if they are not set correctly.
  39.  */
  40.  
  41. #if !__option(enumsalwaysint)
  42. #error Tcl requires the Metrowerks setting "Enums always ints".
  43. #endif
  44.  
  45. #if !defined(__POWERPC__)
  46. #if !__option(far_data)
  47. #error Tcl requires the Metrowerks setting "Far data".
  48. #endif
  49. #endif
  50.  
  51. #if !defined(__POWERPC__)
  52. #if !__option(fourbyteints)
  53. #error Tcl requires the Metrowerks setting "4 byte ints".
  54. #endif
  55. #endif
  56.  
  57. #if !defined(__POWERPC__)
  58. #if !__option(IEEEdoubles)
  59. #error Tcl requires the Metrowerks setting "8 byte doubles".
  60. #endif
  61. #endif
  62.  
  63. /*
  64.  * The define is used most everywhere to tell Tk (or any Tk
  65.  * extensions) that we are compiling for the Macintosh platform.
  66.  */
  67. #define MAC_TCL
  68.  
  69. /*
  70.  * The following defines are for the Xlib.h file to force 
  71.  * it to generate prototypes in the way we need it.  This is
  72.  * defined here in case X.h & company are ever included before
  73.  * tk.h.
  74.  */
  75.  
  76. #define NeedFunctionPrototypes 1
  77. #define NeedWidePrototypes 0
  78.  
  79. /*
  80.  * The following defines control the behavior of the Macintosh
  81.  * Universial Headers.
  82.  */
  83.  
  84. #define SystemSevenOrLater 1
  85. #define STRICT_CONTROLS 0
  86. #define STRICT_WINDOWS  0
  87.  
  88. /*
  89.  * Define the following symbol if you want
  90.  * comprehensive debugging turned on.
  91.  */
  92.  
  93. /* #define TCL_DEBUG */
  94.  
  95. #ifdef TCL_DEBUG
  96. #   define TCL_MEM_DEBUG
  97. #   define TK_TEST
  98. #   define TCL_TEST
  99. #endif
  100.  
  101. /*
  102.  * Place any includes below that will are needed by the majority of the
  103.  * and is OK to be in any file in the system.
  104.  */
  105.  
  106. #include <tcl.h>
  107. #pragma export on
  108. #include "tk.h"
  109. #include "tkInt.h"
  110. #pragma export off
  111.